package com.tucue.dao;

import com.tucue.model.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityMapper {
    int deleteByPrimaryKey(Integer activityid);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer activityid);

    /*园区活动h和APP活动的批量查询， 根据传入的category值确定是哪一类的活动*/
    List<Activity> selectAll(Integer category);

    //更新活动
    int updateActivity(Activity record);

    int updateByPrimaryKey(Activity record);

    //单个删除活动
    int deleteActivity(@Param(value = "id") int id, @Param(value = "visible") int visible);


    //批量删除活动
    int deleteActivityBatch(@Param(value = "idlist") List<Integer> idlist,  @Param(value = "visible") int visible);

    //批量修改活动状态
    int updateActivityStatusBatch(@Param(value = "idlist") List<Integer> idlist,  @Param(value = "status") int status);
}